import { createStore } from 'vuex';

import user from './modules/user'
import home from './modules/home'

const store = createStore({
    state() {
        return {
            counter: 1
        }
    },
    mutations: {
        increment(state) {
            state.counter++
        }
    },
    modules: {
        user,
        home
    }
})

export default store